export function mappingCameraId2RoomId(deviceId,config){
    if(config){
        let cameras = config['cameras'];
        for(let camera of cameras){
            console.log(camera);
            console.log(camera['id'],deviceId);
            if(camera['id'] === deviceId){
                console.log(`${deviceId} 的room为${camera['room']}`);
                return camera['room'];
            }
        }
        return "未知";
    }else{
        console.log(`config 为 ${config}`);
        return "未知";
    }
}